//
//  UserViewModel.m
//  DataStatistics
//
//  Created by 123456 on 16/6/15.
//  Copyright © 2016年 YTYangK. All rights reserved.
//

#import "UserViewModel.h"
@implementation UserViewModel

    
#pragma mark - 退出登录
+ (void)requestWithUrlForlogoutOnline:(id)obj andParam:(NSDictionary *)param success:(void (^)(id model))success failure:(void (^)(NSString *err))failure {
    [[UtilToolsClss getUtilTools] addDoLoading];
    [NetRequestClss requestWithUrl:@"/app/loginout.do" requestWithParameters:param method:NetMethodPOST returnSuccess:^(id objs, int status, NSString *mag) {
        [[UtilToolsClss getUtilTools] removeDoLoading];
        NSLog(@"退出登录返回信息----->%@",objs);
        
        if ([[objs objectForKey:@"result"] isEqualToString:@"success"]) {
            success(mag);
        }
        
    } returnError:^(NSString *err) {
        [[UtilToolsClss getUtilTools] removeDoLoading];
        failure(err);
    }];
}

@end
